export default {
  render (h) {
    let option = this.option
    return (
      <elSelect clearable = {option.clearable} multiple={option.multiple} filterable={option.filterable} disabled={option.disabled} value={option.value}
      onInput={(val) => {
        option.value = val
      }} placeholder={option.placeholder}>
        {
          option.options.map((item) => {
            return <el-option disabled={item.disabled} label={item.label} value={item.value}></el-option>
          })
        }
      </elSelect>
    )
  },
  props: ['option'],
  name: 'vSelect'
}
